/**
 * 清单授权到专窗的rel js api
 */
import request from "@/utils/request";

/**
 * 保存更新授权的数据
 * @param {*} data
 * @returns
 */
export function saveOrUpdate(data) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/detailListWindowRel/saveOrUpdate",
    method: "post",
    headers: {
      "Content-Type": "application/json;charset=UTF-8"
    },
    data: data
  });
}

/**
 * 根据hdlOid和SpecialWinOid查询一条授权数据
 * @param {*} params
 */
export function queryByHdlOidSpecialWinOid(params) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/yxpz/detailListWindowRel/queryByHdlOidSpecialWinOid",
    method: "get",
    params: params
  });
}
